package com.alisls.demo.springcloud.oauth.server.dto;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * OAuth客户端DTO
 *
 * @author Ke Wang
 * @date 2020/10/31
 */
@NoArgsConstructor
@Getter
@Setter
@ToString
public class OAuthClientDetailPwdDTO extends OAuthClientDetailDTO {

    /**
     * 客户密码
     */
    @NotBlank(message = "客户端密码不能为空！")
    @Size(min = 6, max = 128, message = "密码长度在3~128个字符之间")
    private String clientSecret;

}
